package com.zc.service.permissionService;

import com.zc.dao.PathMapper;
import com.zc.entity.Path;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PathService {
    @Resource
    private PathMapper dao;

    public void saveOrUpdatePath(Path path)throws Exception {
        dao.insertSelective(path);
    }

    public List<Path> findFatherLeaf(Integer fatherLeaf) throws Exception {
       return dao.findFatherLeaf(fatherLeaf);
    }
}
